package org.monkey.example.order.provider;

import org.monkey.common.constant.entity.Result;
import org.monkey.example.order.entity.form.PayForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("monkey-pay-demo")
public interface PayServiceProvider {

  @GetMapping("/payApi")
  Result<String> pay();

  @PostMapping("/payApi")
  Result<Boolean> payAmount(@RequestBody PayForm payForm);

  @GetMapping("/payApi/payError")
  Result<String> payError();
}
